package com.cssw.fyzb.web.controller;

import com.cssw.fyzb.base.web.domain.AjaxData;
import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.web.service.UserCashOutService;
import com.cssw.fyzb.web.util.SplitUtil;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static com.cssw.fyzb.web.util.SplitUtil.splitToLongList;


/**
 * @Auther: zzf
 * @Date: 2020/12/2 11:20
 * @Description:
 */

@ApiModel("用户相关接口")
@RestController
@RequestMapping("/userCashOut")
public class UserCashOutController {


    @Autowired
    private UserCashOutService userCashOutService;

    @ApiOperation(value = "提现列表", response = AjaxPage.class)
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public AjaxPage list(int page, int limit, String search) {
        Map param = new HashMap();
        param.put("search", search);
        return userCashOutService.list(page, limit, param);
    }
}
